import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 位移设备数据
 */
public class Displacement {

    /**
     * 内部数据对
     */
    static class DataPair {
        //时戳
        private int time;
        //毫米
        private int millimeter;

        public DataPair(int time, int millimeter) {
            this.time = time;
            this.millimeter = millimeter;
        }

        public int getTime() {
            return time;
        }

        public void setTime(int time) {
            this.time = time;
        }

        public int getMillimeter() {
            return millimeter;
        }

        public void setMillimeter(int millimeter) {
            this.millimeter = millimeter;
        }
    }

    //编号
    private String serialNo;

    //时间
    private Date date;

    //状态
    private int status;

    //各时段数据
    private List<DataPair> timeFrameData = new ArrayList<>();

    public Displacement(String serialNo, Date date) {
        this.serialNo = serialNo;
        this.date = date;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public Date getDate() {
        return date;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public List<DataPair> getTimeFrameData() {
        return timeFrameData;
    }

    public void setTimeFrameData(List<DataPair> timeFrameData) {
        this.timeFrameData = timeFrameData;
    }


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
